import {get,post} from '../untils/request.js'
class Index{
	//会员登录验证码登录
	static loginByCode =(data)=>post('member/loginByCode',data)
	//会员登录 密码登录
	static memberloginx =(data)=>post('member/login',data)
	//发送验证码
	static sendcode =(data)=>post('member/sendcode',data)
	//首页头条新闻
	static newslist =(data)=>get('user/news/list',data)
	// 会员注册
	static memberreg = (data) => post('member/reg',data)
	// 会员注册手机号验证
	static memberregByCode = (data) => post('member/regByCode',data)
	//楼栋列表
	static userbuildinglist = () => get('user/building/list')
	//楼栋房间
	static userhouseslist = (data) => get('user/houses/list',data)
	//住户类型
	static userhouseslx = (data) => get('user/userinfotype/list',data)
	//添加车辆
	static usercaradd = (data) => post('user/car/add',data)
	//我的车辆
	static usercarlist = (data) => get('user/car/list',data)
	//删除车辆
	static usercardeleteall = (data) => post('user/car/deleteall',data)
	//资讯列表
	static usernewslist = (data) => get('user/news/list',data)
	
}
export default Index